import axios from "../utils/axios";

// 突破10分位点数据
export function getMonthLpUp() {
    return axios.get('/statistic/monthLpUp')
}

// 突破的详细数据
export function getMonthLuUpDetail(month) {
    return axios.get('/statistic/monthLpUpDetail/' + month)
}
export function getWeekLpUpDetail(week) {
    return axios.get('/statistic/weekLpUpDetail/' + week)
}

export function getWeekLpNewHighDetail(week) {
    return axios.get('/statistic/weekLpNewHighDetail/' + week)
}

// 跌破的详细数据
export function getMonthLuDownDetail(month) {
    return axios.get('/statistic/monthLpDownDetail/' + month)
}

export function getMonthLpDecrease(month) {
    if (month) {
        return axios.get('/month/lpDecrease/' + month)
    } else {
        return axios.get('/month/lpDecrease')
    }
}

// 跌破10分位点数据
export function getMonthLpDown() {
    return axios.get('/statistic/monthLpDown')
}

export function getYearLineDownDetail(week) {
    return axios.get('/statistic/yearLineDownDetail/' + week)
}

// 突破300日线数据
export function getYearLineUp() {
    return axios.get('/statistic/yearLineUp')
}

export function getYearLineUpDetail(week) {
    return axios.get('/statistic/yearLineUpDetail/' + week)
}

// 突破75日线数据
export function getWeek75DLineUp() {
    return axios.get('/statistic/week75DLineUp')
}

export function getWeek75DLineUpDetail(week) {
    return axios.get('/statistic/week75DLineUpDetail/' + week)
}

export function getWeek75DLineDown() {
    return axios.get('/statistic/week75DLineDown')
}

export function getWeek75DLineDownDetail(week) {
    return axios.get('/statistic/week75DLineDownDetail/' + week)
}

export function getYearLinePerform() {
    return axios.get('/statistic/yearLinePerform')
}

// 跌破300日线数据
export function getYearLineDown() {
    return axios.get('/statistic/yearLineDown')
}

//  年涨跌统计
export function getYearPctStat(stock) {
    if (stock) {
        return axios.get('/statistic/yearPctStat/' + stock)
    } else {
        return axios.get('/statistic/yearPctStat')
    }
}